export class prismaErrorCode {
  message: string
  constructor(error) {
    this[error.code](error)
  }
  P2003(error) {
    this.message = `字段${error.meta.field_name}外键约束错误`
  }
}
